package com.ab.demo.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: abdul
 * @Date: 2018/11/15 19:42
 * @Description:
 */

@RestController
@RequestMapping
public class AbController {

    protected static Logger logger = LoggerFactory.getLogger(AbController.class);

    @RequestMapping(value = "/index",method = RequestMethod.GET)
    public String index(Model model){
        logger.info("进来了");
        model.addAttribute("msg","呵呵");
        return "index";
    }
}
